package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
* 活动回复表 实体类
*
* @author MyBatisGenerator
* @date 2020-09-22
*/
@Data
@DbTable(tableName = "t_exercise_reply")
@ApiModel(value = "ExerciseReply", description = "活动回复表")
public class ExerciseReply extends BaseEntity {
    @ApiModelProperty(value = "活动ID ")
    @DbTableField(columnName = "c_exercise_id", dbType = DbTypeEnum.VARCHAR)
    private Integer exerciseId;

    @ApiModelProperty(value = "星数 ")
    @DbTableField(columnName = "c_start_num", dbType = DbTypeEnum.INTEGER)
    private Integer startNum;

    @ApiModelProperty(value = "内容 ")
    @DbTableField(columnName = "c_content", dbType = DbTypeEnum.VARCHAR)
    private String content;

    @ApiModelProperty(value = "日期 ")
    @DbTableField(columnName = "c_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime date;

    @ApiModelProperty(value = "微信Id")
    @DbTableField(columnName = "c_openid", dbType = DbTypeEnum.VARCHAR)
    private String openid;

    @ApiModelProperty(value = "微信名称 ")
    @DbTableField(columnName = "c_nickname", dbType = DbTypeEnum.VARCHAR)
    private String nickname;

    @ApiModelProperty(value = "参与Id  若没有 0 ")
    @DbTableField(columnName = "c_in_id", dbType = DbTypeEnum.INTEGER)
    private Integer inId;

    @ApiModelProperty(value = "修改时间 ")
    @DbTableField(columnName = "c_db_update_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime dbUpdateDate;

    @ApiModelProperty(value = "权限")
    @DbTableField(columnName = "c_state", dbType = DbTypeEnum.BOOLEAN)
    private Boolean state;

}
